<template>
	<view>
		<view class="map_view" v-if="longitude && latitude">
		    <map class="map_view_m" :longitude="longitude" :latitude="latitude" :markers="covers"></map>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude:"",
				latitude:"",
				covers:[]
			};
		},
		onLoad(ph) {
			this.longitude = ph.longitude;
			this.latitude = ph.latitude;
			this.covers = [
				{
					latitude: this.latitude,
					longitude: this.longitude,
					iconPath: '../../static/point.png',
				}
			]
		}
	}
</script>

<style lang="scss">
.map_view{
	width: 750rpx;
	height: 100vh;
	.map_view_m{
		width: 750rpx;
		height: 100vh;
	}
}
</style>
